#  python的赋值运算符同C，但多了“**=”

x = 3
x **= 2
print(x)

#  特殊的
a, b = 2, 'asd'
print(a, b)
c, d = (2, 5)
print(c, d)

# 元组
e = 'asd', 'zxc'  # ()的省略
print(e)

# 拆包时，变量的个数和值得个数不一致时，会出错
# y, z = 1, 2, 3, 4, 5  # ValueError: too many values to unpack (expected 2)
# x, y, z = 1, 2  # ValueError: not enough values to unpack (expected 3, got 2)

# *p 表示可变长度
o, *p, q = 1, 2, 3, 4, 5, 6, 7
print(o, p, q)
